﻿using WJP.Dependency;
using WJP.Localization;

namespace System
{
    /// <summary>
    /// 本地化帮助类
    /// </summary>
    public static class LocalizationHelper
    {
        /// <summary>
        /// 语言提供器
        /// </summary>
        private static Translator Translator { get; set; }

        /// <summary>
        /// 通过代码中直接编写的语言，翻译为对应当前语言
        /// </summary>
        /// <param name="devContent">代码中直接编写的语言</param>
        /// <returns></returns>
        public static string Translate(this string devContent)
        {
            return Translator.Translate(devContent);
        }
    }
}